package com.example.child_protection.dto.request.add;

import com.example.child_protection.dto.base.BaseRequestDTO;
import com.example.child_protection.enums.BooleanEnums;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotNull;

/**
 * 菜单信息添加请求DTO
 * @date 2018-11-1
 * @author Biz
 */
@Getter
@Setter
public class SystemMenuInsertRequestDTO extends BaseRequestDTO {

    /**
     * 编码
     *
     * @mbggenerated
     */
    @NotNull
    private String code;

    /**
     * 父节点编码
     *
     * @mbggenerated
     */
    @NotNull
    private String parentCode;

    /**
     * 名称
     *
     * @mbggenerated
     */
    @NotNull
    private String name;

    /**
     * 图标链接
     *
     * @mbggenerated
     */
    private String imgUrl;

    /**
     * 链接
     *
     * @mbggenerated
     */

    private String href;

    /**
     * 是否根节点
     *
     * @mbggenerated
     */
    @NotNull
    private BooleanEnums isRoot;

    public void valid(){
        super.validate( this, new Class[0] );

    }
    public boolean isValidGid() {

        return false;
    }

}
